package cn.vcjf.washcar.userInfo.entity;

import cn.vcjf.washcar.common.web.PageModel;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhengzihang
 * @since 2018-07-18
 */
@TableName("user_address")
public class UserAddress extends PageModel {

    private static final long serialVersionUID = 1L;

    private Integer id;

    /**
     * 用户id
     */
    private Integer usesrId;

    /**
     * 电话
     */
    private String phoneNo;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 地点经度
     */
    private Double longitude;

    /**
     * 地点纬度
     */
    private Double latitude;

    /**
     * 是否默认
     */
    private Integer isDefault;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getUsesrId() {
        return usesrId;
    }

    public void setUsesrId(Integer usesrId) {
        this.usesrId = usesrId;
    }
    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }
    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }
    public Integer getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }

    @Override
    public void preInsert(){
        super.preInsert();
    }
    @Override
    public void preUpdate(){
        super.preUpdate();
    }

    @Override
    public String toString() {
        return "UserAddress{" +
        "id=" + id +
        ", usesrId=" + usesrId +
        ", phoneNo=" + phoneNo +
        ", address=" + address +
        ", longitude=" + longitude +
        ", latitude=" + latitude +
        ", isDefault=" + isDefault +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        "}";
    }
}
